{extend name="layout/iframe" /}

{block name="content"}
<div class="layui-card-body layui-layout-admin" style="padding: 15px;">
    <form class="layui-form" action="" lay-filter="component-form-group">
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label"><span class="required">*</span>姓名</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="name" maxlength="20" lay-verify="name" placeholder="" autocomplete="off">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label"><span class="required">*</span>收银端账号</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="cashier_account" lay-verify="required" placeholder="" autocomplete="off">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label"><span class="required">*</span>密码</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="cashier_pwd" lay-verify="password" placeholder="" autocomplete="off">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label"><span class="required">*</span>角色</label>
            <div class="layui-input-block">
                <select name="role_id" lay-verify="required">
                    <option value="">请选择</option>
                    {foreach name="roles" item="role"}
                        <option value="{$role.id}">{$role.name}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <input type="hidden" name="id" value="">
        <input type="hidden" name="store_id" value="{$store_id}">

        <div class="layui-form-item layui-row layui-col-xs12">
            <div class="layui-input-block">
                <div class="layui-footer">
                    <button type="button" class="layui-btn layui-btn-primary close-btn">取消</button>
                    <button type="button" class="layui-btn" lay-submit="" lay-filter="laySave">保存 <i class="layui-icon">&#xe609;</i></button>
                </div>
            </div>
        </div>
    </form>
</div>

<input type="hidden" class="save_url" value="{:url('admin/'.strtolower($model).'/savepost')}">
{/block}

{block name="pagescript"}
<script src="__STATIC__/admin/pages/js/storestaff.js" type="text/javascript"></script>
{/block}